{if $message}
	<div class="success alert-success alert">{$message}</div>
{else}
	<h3>Registrácia</h3>
	<p>(registrácia nie je povinná, je to slobodná voľba)</p>
	
	<form action="{actualurl}" method="post" enctype="multipart/form-data" class="reply">
		<fieldset>
			{if $errors}
				{foreach from=$errors item='error'}
					<div class="error alert-warning alert">{$error}</div>
				{/foreach}
			{/if}
			<div class="row">
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Meno *" value="{$values.first_name}" name="first_name" required>
				</div>
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Priezvisko *" value="{$values.last_name}" name="last_name" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Ulica / číslo domu *" value="{$values.address}" name="address" required>
				</div>
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="PSČ *" value="{$values.zip}" name="zip" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Mesto *" value="{$values.city}" name="city" required>
				</div>
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Štát *" value="{$values.country}" name="country" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="text" placeholder="Telefón" value="{$values.telephone}" name="telephone">
				</div>
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="email" placeholder="E-mail *" value="{$values.email}" name="email" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<label for="photo" class="form-control mylabel">Profilová fotka (max. 250 kB)</label>
				</div>
				<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
					<input class="form-control" type="file" placeholder="Pridať profilovú fotku" name="photo" id="photo">
				</div>
				
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<textarea class="form-control" rows="3" cols="40" placeholder="O mne" name="about">{$values.about}</textarea>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12">
					<div class="star-divider">
						<div class="star-divider-icon">
							<i class="fa fa-star"></i>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<input class="form-control" type="text" placeholder="Prihlasovacie meno *" value="{$values.username}" name="username" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<input class="form-control" type="password" placeholder="Heslo *" value="" name="password" required>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
					<input class="form-control" type="password" placeholder="Potvrdiť heslo *" value="" name="confirm_password" required>
				</div>
			</div>
			<div class="data_block">
				<label class="mylabel"><input type="checkbox" name="data_processing"{if $values.data_processing} checked="checked"{/if} /> <em class="req">*</em> súhlasím so spracovaním mojich údajov, len v prospech ÚSMEVU S&nbsp;ČIARKOU. Úsmev s&nbsp;čiarkou sa týmto zaväzuje, že tieto údaje NIKOMU neposkytne, žiadnej inej osobe, organizácii a podobne.</label>
				<label class="mylabel"><input type="checkbox" name="rejection"{if $values.rejection} checked="checked"{/if} /> <em class="req">*</em> súhlasím s vyradením zo stránky, pokiaľ poruším <a href="pravidla.html" target="_blank">pravidlá ÚSMEVU S&nbsp;ČIARKOU</a></label>				
				<label class="mylabel"><input type="checkbox" name="no_pressure"{if $values.no_pressure} checked="checked"{/if} /> <em class="req">*</em> zaregistroval/a som sa slobodne a bez nátlaku.</label>
			</div>
			<p>Polia označené <em class="req">*</em> sú povinné</p>
			<p>Registráciu je možné kedykoľvek zrušiť kontaktovaním adminky.</p>
		</fieldset>
		<button class="btn btn-color submit pull-right" type="submit" name="submit">Registrovať</button>
		<div class="clearfix"></div>
	</form>
{/if}